package com.situ.mall.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.mall.common.entity.OrderInfo;
import com.situ.mall.common.vo.OrderVO;
import com.situ.mall.common.vo.PersonalOrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JavaWizard
 * @since 2023-09-25
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    //查询订单
    List<OrderVO> list(String memberName, String tel);

    //1.根据memberId查订单主表
    List<PersonalOrderVO> all(@Param("status")String status, @Param("memberId")Integer memberId);
}
